<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">  
<html>  
<head>  
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
<title>Insert title here</title>  
  
<script type="text/javascript">  
    function btn_test() {  
/* 打印,logcat里的tag是Web Console */  
        console.log("btn_test");  
    }  
  
    function call_java() {  
/* js调用java代码,需要接口 */  
        Window.interface_test.showToastFromWeb("hello i am javascript!");  
    }  
  
    function test_alert() {  
/* 弹出对话框 */  
        alert("hello i am javascript!");  
    }  
  
    function test_confirm() {  
        /* 弹出带确定和取消按钮的对话框 */  
    var v = confirm("hello i am javascript!");  
        console.log("onfirm " + v);  
    }  
  
    function test_prompt() {  
/* 弹出带输入框的对话框 */  
        var v = prompt("input you name!", "tom");  
        console.log("prompt " + v);  
    }  
      
</script>  
</head>  
<body>  
    <button onclick="btn_test()">test</button>  
    <button onclick="call_java()">call_java</button>  
    <button onclick="test_alert()">test_alert</button>  
    <button onclick="test_confirm()">test_confirm</button>  
    <button onclick="test_prompt()">test_prompt</button>  
    <label tel:800800284>tel:8008233</label>  
  
</body>  
</html>  